package com.hex.ds.hdrs.period.job.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.ds.hdrs.period.job.po.HisBitch;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public class HisBitchDao extends BaseDao {

    public void insert(HisBitch hisBitch) {
        this.insert("com.hex.ds.hdrs.period.job.dao.HisBitchDao.insert", hisBitch);
    }

    public int qryDayCount(Map map) {
        return this.selectOne(Integer.class, "com.hex.ds.hdrs.period.job.dao.HisBitchDao.qryDayCount", map);
    }

    public List<HisBitch> selectPages(Map map, Page page) {
        return this.selectPage(HisBitch.class, "com.hex.ds.hdrs.period.job.dao.HisBitchDao.selectPages", page, map);
    }

    public void updateReductionType(Map map) {
        this.executeNamedSql("com.hex.ds.hdrs.period.job.dao.HisBitchDao.updateReductionType", map);
    }
}
